﻿
<div>
    <form name="workFlowCreateOrEditForm" role="form" novalidate class="form-validation">
        <div class="modal-header">
            <h4 class="modal-title">
                <span ng-if="vm.workFlow.id">编辑信息:{{vm.workFlow.name}}</span>
                <span ng-if="!vm.workFlow.id">新增信息</span>
            </h4>
        </div>
        <div class="modal-body">


            <div class="form-group form-md-line-input form-md-floating-label no-hint" style="display:none;">
                <input type="text" class="form-control" name="FlowType" ng-class="{'edited':vm.workFlow.flowType}" ng-model="vm.workFlow.flowType" required />
                <label>流程种类</label>
                <span class="help-block">     @L("FlowType")@L("MustBe_Required")</span>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <input type="text" class="form-control" name="FlowName" ng-class="{'edited':vm.workFlow.flowName}" ng-model="vm.workFlow.flowName" maxlength="200" required />
                <label>流程名称</label>
                <span class="help-block">     @L("FlowName")@L("MustBe_Required")</span>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <input type="text" class="form-control" name="FlowDesc" ng-class="{'edited':vm.workFlow.flowDesc}" ng-model="vm.workFlow.flowDesc" maxlength="500" />
                <label>流程描述</label>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <input type="number" class="form-control" name="FlowOrder" ng-class="{'edited':vm.workFlow.flowOrder}" ng-model="vm.workFlow.flowOrder" />
                <label>排序</label>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <div class="md-checkbox-list">
                    <div class="md-checkbox">
                        <input id="EditWorkFlow_DelTag" class="md-check" type="checkbox" name="DelTag" ng-model="vm.workFlow.delTag">
                        <label for="EditWorkFlow_DelTag">
                            <span class="inc"></span>
                            <span class="check"></span>
                            <span class="box"></span>
                            是否可用
                        </label>
                    </div>
                </div>
            </div>


        </div>
        <div class="modal-footer">
            <button ng-disabled="vm.saving" type="button" class="btn btn-default" ng-click="vm.cancel()">@L("Cancel")</button>
            <button type="submit" button-busy="vm.saving" busy-text="@L("SavingWithThreeDot")" class="btn btn-primary blue" ng-click="vm.save()" ng-disabled="workFlowCreateOrEditForm.$invalid"><i class="fa fa-save"></i> <span>@L("Save")</span></button>
        </div>
    </form>
</div>